#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
#define endl '\n'

int f(int x) {
    return x * x;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);

    cout << f(2) << endl;//2*2=4
    auto g = [](int x) {
        return x * x;
    };
    cout << g(2) << endl;

    cout << [](int x) {
        return x * x;
    }(2) << endl;


    return 0;
}